<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WeChatText extends Model
{
    protected $table = 'we_chat_texts';
    protected $fillable = ['site_id', 'rule_id', 'module_id', 'contents'];
    protected $casts = ['contents' => 'array'];
    public function rule(){
        return $this->belongsTo(WeChatRule::class,'rule_id');
    }

}
